﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TransCend.Util.Page
{
    public class JsonPage<T>
    {
        private PageTools<T> pt = null;
        public JsonPage(PageTools<T> pt)
        {
            this.pt = pt;
        }

        public int TotalCount
        {
            get { return pt.GetTotalCount(); }
        }

        public int TotalPage
        {
            get { return pt.GetTotalPage(); }
        }

        public int Page
        {
            get { return pt.GetPageNo(); }
        }

        public int Rows
        {
            get { return pt.GetPageSize(); }
        }

        public Object List
        {
            get { return pt.List; }
        }

        public int PrePage
        {
            get { return pt.GetPrePage(); }
        }

        public int NextPage
        {
            get { return pt.GetNextPage(); }
        }
    }
}
